//
//  YMMineHomeListCell.swift
//  YMMedical
//
//  Created by y s on 2023/7/25.
//

import UIKit

@objcMembers class YMMineHomeListCell: UITableViewCell {
    

    lazy var vItem: YMMineTabListItemView = {
        let result = YMMineTabListItemView()
        return result
    }()

    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        setUI()
    }
    
    
    // MARK: UI
    func setUI() {
        contentView.backgroundColor = .clear
        backgroundColor = .clear
        selectionStyle = .none
        
        contentView.addSubview(vItem)
        
        vItem.snp.makeConstraints { make in
            make.left.equalTo(SFitUtil.fit(15))
            make.right.equalTo(SFitUtil.fit(-15))
            make.bottom.equalTo(0)
            make.height.equalTo(SFitUtil.fit(64))
        }
        
    }
    
    public func updateData(_ dict: Dictionary<String, Any>){
        vItem.changeData(dict)
    }
    public class func getCellHeight() -> CGFloat {
        return SFitUtil.fit(64)
    }

    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
